package com.nervenets.web.controller.bank;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class TransactionsParams extends TokenParams {
    @ApiModelProperty(value = "查询方式", required = true)
    @Positive(message = "查询方式，1-首次查询，2-上一页，3-下一页")
    private int queryMode;
    @ApiModelProperty(value = "页码", required = true)
    @Positive(message = "页码，该值区别于我们的系统，以1开始")
    private int page;
    @ApiModelProperty(value = "上次入账日期（翻页时必输，查询上页送上页查询结果第一条记录的入账日期，查询下页送最近一次查询结果最后一条记录的入账日期）")
    private String pnBusidate;
    @ApiModelProperty(value = "翻页条件记录（翻页时必输，查询上页送上页查询结果第一条记录的翻页条件，查询下页送最近一次查询结果最后一条记录的翻页条件）")
    private String pnRowRecord;
}
